def find_highest_average_score(score_list, **kwargs):
    averages = []
    for student_id in kwargs:  # 遍历传入的关键字参数，即学生ID
        if student_id in score_list:
            scores = score_list[student_id][1:]  # 获取除姓名外的所有成绩
            average_score = sum(scores) / len(scores)  # 计算平均分
            averages.append(average_score)
        else:
            print(f"未找到学号为 {student_id} 的学生")

    if averages:  # 如果averages列表非空
        averages.sort()  # 排序平均分列表
        highest_average = averages[-1]  # 最高平均分为列表中的最后一个元素
        return highest_average
    else:
        return "无有效成绩"

score_list = {
               "001": ["小赵", 100, 88, 87, 83],
               "002": ["小钱", 98, 90, 93, 88],
               "003": ["小孙", 87, 75, 85, 78],
               "004": ["小李", 89, 84, 79, 96],
               "005": ["小周", 82, 63, 68, 86],
               "006": ["小吴", 83, 59, 85, 78],
               "007": ["小郑", 75, 82, 77, 92],
               "008": ["小王", 78, 91, 69, 87],
               "009": ["小冯", 60, 75, 81, 66],
               "010": ["小陈", 68, 63, 83, 87]
             }

highest_avg = find_highest_average_score(score_list,
                                         001:"小赵",
                                         002:"小钱",
                                         003="小孙",
                                         004="小李",
                                         005="小周",
                                         006="小吴",
                                         007="小郑",
                                         008="小王",
                                         009="小冯",
                                         010="小陈")

print("最高平均成绩:", highest_avg)
